import { defineFakeRoute } from "vite-plugin-fake-server/client";
// 模拟刷新token接口
// export default
 defineFakeRoute([
    {
        url: "/business/project/v2/buildings",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": null,
                "result": {
                    "total": 20,
                    "data": [{
                        "id": 2,
                        "projectId": 1,
                        "projectName": "项目名称",
                        "budingName": "xxx",
                        "upFloors": 5,
                        "downFloor": 0,
                        "showType": 1
                    }]
                }
            }
        }
    }, {
        url: "/business/project/v2/building",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": "ok",
                "result": {
                    "projectId": 0,
                    "buildingName": "行行行",
                    "upFloors": 0,
                    "downFloors": 0,
                    "drawingPoints": {
                        "lat": "",
                        "lng": "",
                        "iconUrl": ""
                    },
                    "mapPoints": {
                        "lat": "",
                        "lng": "",
                        "iconUrl": ""
                    },
                    "remark": "啊啊啊"
                }
            }
        }
    }, {
        url: "/business/project/v2/building",
        method: "delete",
        response: () => {
            return {
                "code": 200,
                "msg": "删除成功",
                "result": null
            }
        }
    }, {
        url: "/business/project/v2/building",
        method: "put",
        response: () => {
            return {
                "code": 200,
                "msg": "修改成功",
                "result": null
            }
        }
    }, {
        url: "/business/project/v2/building",
        method: "post",
        response: () => {
            return {
                "code": 200,
                "msg": "添加成功",
                "result": null
            }
        }
    },
]);